package com.yidu.best.bond.cashInventory.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 现金库存
 * @author AA
 *
 */
public class CashInventoryVo {
	//现金库存Id
	private String cachInventoryId;
	//现金库存编号
	private String cachInventoryNo;
	//基金Id
	private String fundId;
	//基金代码
	private String fundNo;
	//基金名
	private String fundName;
	//账户Id
	private String accountId;
	//账号
	private String accountNo;
	//账户名
	private String accountName;
	//现金余额
	private BigDecimal cashBalance;
	//统计日期
	private Date statisticalDate;
	//描述
	private String description;
	private Integer page;

	private Integer limit;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endTime;
	public String getCachInventoryId() {
		return cachInventoryId;
	}
	public void setCachInventoryId(String cachInventoryId) {
		this.cachInventoryId = cachInventoryId;
	}
	public String getCachInventoryNo() {
		return cachInventoryNo;
	}
	public void setCachInventoryNo(String cachInventoryNo) {
		this.cachInventoryNo = cachInventoryNo;
	}
	public String getFundId() {
		return fundId;
	}
	public void setFundId(String fundId) {
		this.fundId = fundId;
	}
	public String getFundNo() {
		return fundNo;
	}
	public void setFundNo(String fundNo) {
		this.fundNo = fundNo;
	}
	public String getFundName() {
		return fundName;
	}
	public void setFundName(String fundName) {
		this.fundName = fundName;
	}
	public String getAccountId() {
		return accountId;
	}
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	public String getAccountNo() {
		return accountNo;
	}
	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	public String getAccountName() {
		return accountName;
	}
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	public BigDecimal getCashBalance() {
		return cashBalance;
	}
	public void setCashBalance(BigDecimal cashBalance) {
		this.cashBalance = cashBalance;
	}
	public Date getStatisticalDate() {
		return statisticalDate;
	}
	public void setStatisticalDate(Date statisticalDate) {
		this.statisticalDate = statisticalDate;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	@Override
<<<<<<< HEAD
	public String toString() {
		return "CashInventoryVo [cachInventoryId=" + cachInventoryId + ", cachInventoryNo=" + cachInventoryNo
				+ ", fundId=" + fundId + ", fundCode=" + fundCode + ", fundName=" + fundName + ", accountId="
				+ accountId + ", accountNo=" + accountNo + ", accountName=" + accountName + ", cashBalance="
				+ cashBalance + ", statisticalDate=" + statisticalDate + ", description=" + description + ", page="
				+ page + ", limit=" + limit + ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}
	public CashInventoryVo(String cachInventoryId, String cachInventoryNo, String fundId, String fundCode,
=======
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((StatisticalDate == null) ? 0 : StatisticalDate.hashCode());
		result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result + ((accountName == null) ? 0 : accountName.hashCode());
		result = prime * result + ((accountNo == null) ? 0 : accountNo.hashCode());
		result = prime * result + ((cachInventoryId == null) ? 0 : cachInventoryId.hashCode());
		result = prime * result + ((cachInventoryNo == null) ? 0 : cachInventoryNo.hashCode());
		result = prime * result + ((cashBalance == null) ? 0 : cashBalance.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
		result = prime * result + ((fundId == null) ? 0 : fundId.hashCode());
		result = prime * result + ((fundName == null) ? 0 : fundName.hashCode());
		result = prime * result + ((fundNo == null) ? 0 : fundNo.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CashInventoryVo other = (CashInventoryVo) obj;
		if (StatisticalDate == null) {
			if (other.StatisticalDate != null)
				return false;
		} else if (!StatisticalDate.equals(other.StatisticalDate))
			return false;
		if (accountId == null) {
			if (other.accountId != null)
				return false;
		} else if (!accountId.equals(other.accountId))
			return false;
		if (accountName == null) {
			if (other.accountName != null)
				return false;
		} else if (!accountName.equals(other.accountName))
			return false;
		if (accountNo == null) {
			if (other.accountNo != null)
				return false;
		} else if (!accountNo.equals(other.accountNo))
			return false;
		if (cachInventoryId == null) {
			if (other.cachInventoryId != null)
				return false;
		} else if (!cachInventoryId.equals(other.cachInventoryId))
			return false;
		if (cachInventoryNo == null) {
			if (other.cachInventoryNo != null)
				return false;
		} else if (!cachInventoryNo.equals(other.cachInventoryNo))
			return false;
		if (cashBalance == null) {
			if (other.cashBalance != null)
				return false;
		} else if (!cashBalance.equals(other.cashBalance))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (endTime == null) {
			if (other.endTime != null)
				return false;
		} else if (!endTime.equals(other.endTime))
			return false;
		if (fundId == null) {
			if (other.fundId != null)
				return false;
		} else if (!fundId.equals(other.fundId))
			return false;
		if (fundName == null) {
			if (other.fundName != null)
				return false;
		} else if (!fundName.equals(other.fundName))
			return false;
		if (fundNo == null) {
			if (other.fundNo != null)
				return false;
		} else if (!fundNo.equals(other.fundNo))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (startTime == null) {
			if (other.startTime != null)
				return false;
		} else if (!startTime.equals(other.startTime))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "CashInventoryVo [cachInventoryId=" + cachInventoryId + ", cachInventoryNo=" + cachInventoryNo
				+ ", fundId=" + fundId + ", fundNo=" + fundNo + ", fundName=" + fundName + ", accountId=" + accountId
				+ ", accountNo=" + accountNo + ", accountName=" + accountName + ", cashBalance=" + cashBalance
				+ ", StatisticalDate=" + StatisticalDate + ", description=" + description + ", page=" + page
				+ ", limit=" + limit + ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}
	public CashInventoryVo(String cachInventoryId, String cachInventoryNo, String fundId, String fundNo,
>>>>>>> branch 'master' of https://gitee.com/luzhenhe/BestFund.git
			String fundName, String accountId, String accountNo, String accountName, BigDecimal cashBalance,
			Date statisticalDate, String description, Integer page, Integer limit, Date startTime, Date endTime) {
		super();
		this.cachInventoryId = cachInventoryId;
		this.cachInventoryNo = cachInventoryNo;
		this.fundId = fundId;
		this.fundNo = fundNo;
		this.fundName = fundName;
		this.accountId = accountId;
		this.accountNo = accountNo;
		this.accountName = accountName;
		this.cashBalance = cashBalance;
		this.statisticalDate = statisticalDate;
		this.description = description;
		this.page = page;
		this.limit = limit;
		this.startTime = startTime;
		this.endTime = endTime;
	}
	public CashInventoryVo() {
		
	}
	
<<<<<<< HEAD
=======
	
>>>>>>> branch 'master' of https://gitee.com/luzhenhe/BestFund.git
}
